package com.demo.rydemo.utils;

import org.apache.shiro.crypto.hash.Md5Hash;
import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * @Author ry
 * @Description  salt解密
 * @Date 2020/8/5 16:50
 */
public class MD5Util {
    public static void main(String[] args) {
//        Md5Hash md5Hash = new Md5Hash("admin123","salt");
        SimpleHash simpleHash = new SimpleHash("md5","admin123","admin",1);

        System.out.println("admin用户的密码是:" + simpleHash.toString());
    }
}
